import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3
import  Quick.UIComponent.ProgressBar.Simple  0.1 as Simple
import Quick.UIComponent.Loaders.Simple 0.1  as Simple1
import QtGraphicalEffects 1.12

Page{
    id:root
    title: "Button"

    property real _value
    on_ValueChanged: {
        if(1 < _value){
            _value = 0.0
        }
    }

    Flow{
        anchors.fill: parent
        anchors.margins: 4
        spacing: 40
        flow:Flow.TopToBottom


        ProgressBar {
            id:progress
            value: _value
        }


        Simple.ProgressBar{
            value: _value
        }

        BusyIndicator {
            //running: image.status === Image.Loading
            running: timer.running
        }
        Simple1.BusyIndicator{
            running: timer.running
        }
    }


    Timer {
        id:timer
        interval: 500; running: true; repeat: true
        onTriggered: _value+=0.08
    }


}
